from http_class import HttpResponse, JsonResponse
from models import Bookinfo


def index(request):
    print(request.path)
    # 业务逻辑
    # return HttpResponse('成功')
    data = Bookinfo.objects.all()
    print(data)
    return JsonResponse({'data_list':data})
